package com.itboye.ihomebank.key;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.itboye.ihomebank.R;
import com.itboye.ihomebank.base.BaseOtherActivity;

/**
 * 管理员用户（锁）
 * 
 */
public class ActivityGuanLiKey extends BaseOtherActivity {
	ImageView key_finish;// 返回
	TextView key_title;// 标题
	ImageView key_shezhi;// 设置
	// 发送钥匙，发送密码，用户管理，开锁记录
	LinearLayout key_send_yaoshi, key_send_pass, key_guanli, key_jilu;

	@Override
	public void onClick(View v) {
		Intent intent=null;
		switch (v.getId()) {
		case R.id.key_finish:
			finish();
			break;
		case R.id.key_shezhi:// 设置
			intent=new Intent(this, ActivityKeySheZhiTwo.class);
			startActivity(intent);
			
			break;
		case R.id.key_send_yaoshi:// 发送钥匙
			intent=new Intent(this, ActivitySendKey.class);
			startActivity(intent);
			break;
		case R.id.key_send_pass:// 发送密码
			intent=new Intent(this, ActivityFaSongPass.class);
			startActivity(intent);
			break;
		case R.id.key_guanli:// 用户管理
			intent=new Intent(this, ActivityYongHuGuanLi.class);
			startActivity(intent);
			break;
		case R.id.key_jilu:// 开锁记录
			intent=new Intent(this, ActivityKaiSuoJiLu.class);
			startActivity(intent);
			break;

		default:
			break;
		}

	}

	@Override
	protected int layout_id() {
		// TODO Auto-generated method stub
		return R.layout.activity_guanli_key;
	}

	@Override
	protected void onInitController() {
		// TODO Auto-generated method stub

	}

	@Override
	protected void onInit() {
		// TODO Auto-generated method stub

	}

	@Override
	protected void onReadIntent(Bundle bundle) {
		// TODO Auto-generated method stub

	}

}
